package com.job.siteapp.domain;

import com.job.siteapp.common.globality.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import java.io.Serializable;

/**
 * 对话
 * Created by Administrator on 2016-07-09-0009.
 */
@Entity
@Table(name = "site_dialogue", uniqueConstraints = {@UniqueConstraint(columnNames = "id")})
public class Dialogue extends BaseEntity implements Serializable {

    @Column(name = "comment_id", nullable = false, updatable = false)
    private Long commentId;

    @Column(name = "from_user_id")
    private Long fromUserId;

    @Column(name = "to_user_id")
    private Long toUserId;

    @Column(name = "content")
    private String content;

    public Long getCommentId() {
        return commentId;
    }

    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }

    public Long getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(Long fromUserId) {
        this.fromUserId = fromUserId;
    }

    public Long getToUserId() {
        return toUserId;
    }

    public void setToUserId(Long toUserId) {
        this.toUserId = toUserId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
